package com.wsj.web.form.admin;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionMessage;

public class AdminNewsBigClassForm extends ActionForm {

	private static final long serialVersionUID = -2155197958844443184L;
	private int bcId;
    private String bcClassname;
	public String getBcClassname() {
		return bcClassname;
	}
	public void setBcClassname(String bcClassname) {
		this.bcClassname = bcClassname;
	}
	public int getBcId() {
		return bcId;
	}
	public void setBcId(int bcId) {
		this.bcId = bcId;
	}
	@Override
	public void reset(ActionMapping arg0, HttpServletRequest arg1) {
		// TODO Auto-generated method stub
		bcClassname = "";
	}
	@Override
	public ActionErrors validate(ActionMapping arg0, HttpServletRequest arg1) {
		// TODO Auto-generated method stub
		ActionErrors actionErr = new ActionErrors();
		if(bcClassname.equals(""))actionErr.add("bcClassnameErr",new ActionMessage("bcClassnameErr"));
		return actionErr;
	}

}
